package com.slashmanx.socialwall;

import java.util.Date;

import com.slashmanx.helpers.Utilities;

public class SocialPicture 
{
	String name;
	String url;
	String source;
	String uploader;
	static int counter;
	
	public SocialPicture() 
	{
		counter++;
		this.name = "swp_" + counter + "_"+ new Date().getTime() + ".jpg";
		this.url = "";
		this.source = "";
		this.uploader = "";
	}
	public SocialPicture(String url, String source, String uploader) 
	{
		counter++;
		this.name = Utilities.getFileNameFromURL(url);
		this.url = url;
		this.source = source;
		this.uploader = uploader;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getUploader() {
		return uploader;
	}

	public void setUploader(String uploader) {
		this.uploader = uploader;
	}
	
	
	
}
